<!DOCTYPE html>
<!--
	作者：offline
	时间：2018-12-21
	描述：我的提问
-->
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="shortcut icon" href="../../../favicon.ico" type="image/x-icon">
		<link rel="stylesheet" type="text/css" href="../../../static/inxweb/css/reset.css">
		<link rel="stylesheet" type="text/css" href="../../../static/inxweb/css/theme.css">
		<link rel="stylesheet" type="text/css" href="../../../static/inxweb/css/global.css">
		<link rel="stylesheet" type="text/css" href="../../../static/inxweb/css/web.css">
		<link href="../../../static/inxweb/css/mw_320_768.css" rel="stylesheet" type="text/css" media="screen and (min-width: 320px) and (max-width: 768px)">
		<script type="text/javascript" src="../../../static/common/webutils.js"></script>
		<script type="text/javascript" src="../../../static/common/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="../../../static/inxweb/user/ucTop.js"></script>
		<script type="text/javascript" src="../../../js/header.js"></script>
		<script type="text/javascript" src="../../../static/inxweb/js/common.js"></script>
		<script src="../../../js/head.js"></script>
	</head>

	<body>
		<script src="../../../js/vue.min.js"></script>
		<script src="../../../js/axios.min.js"></script>
		<article class="col-7 fl">
			<div class="u-r-cont" id="app">
				<section>
					<div> <span class="fr"><a href="#" title="" class="comm-btn c-btn-6" style="font-size: 16px; height: 22px; line-height: 22px; padding: 0 20px;">去提问</a></span>
						<section class="c-infor-tabTitle c-tab-title cnew-tab-title">
							<a href="http://localhost:8081javascript: void(0)" title="Wo的问答" class="current">Wo的问答</a>
							<a href="myQuestion.html" title="Wo的提问" class="current">Wo的提问</a>
							<a href="myAnswer.html" title="Wo的回答">Wo的回答</a>
						</section>
					</div>
					<div class="mt40">
						<div class="u-question-wrap">
							<section class="q-all-list">
								<ul>
									<li v-for="c in question">
										<aside class="q-head-pic">
											<img :src="eduUser.picImg" alt="">
											<p class="hLh30 txtOf"> <span class="c-999"> {{eduUser.showName}}</span> </p>
										</aside>
										<section class="q-txt-box">
											<a class="replyBrowseNum" @click="toDetail(c.id)" title="">
												<div class="replyNum"> <span class="r-b-num">{{c.replyCount}}</span>
													<p class="hLh30"> <span class="c-999 f-fA">回答数</span> </p>
												</div>
												<div class="browseNum"> <span class="r-b-num">{{c.browseCount}}</span>
													<p class="hLh30"> <span class="c-999 f-fA">浏览数</span> </p>
												</div>
											</a>
											<h3 class="hLh30 txtOf"> <em class="icon16 q-tw">&nbsp;</em> <a href="#" title="" @click="toDetail(c.id)" class="fsize16 c-333 vam">{{c.title}}</a> </h3>
											<h3 class="hLh30 txtOf mt5" v-if="c.eduQuestionsComment!=null"> <em class="icon16 q-hd">&nbsp;</em> <span class="fsize12 c-999 vam"> 
														<tt class="c-green f-fM mr5">[最新回答]</tt>{{c.eduQuestionsComment.content}} </span> </h3>
											<div class="mt15"> <span class="c-ccc fl vam">时间：{{c.addTime}}</span>
												<section class="fl ml20 pt10">
													<div class="taglist clearfix">
														<a title="Premiere" data-id="5" class="list-tag" href="#">Premiere</a>
													</div>
												</section>
												<div class="clear"></div>
											</div>
										</section>
									</li>
								</ul>
							</section>
						</div>
						<section class="no-data-wrap" v-show="question.length==0"> <em class="icon30 no-data-ico">&nbsp;</em> <span class="c-666 fsize14 ml10 vam">亲，您还没有提过问题，快去提问吧！</span> </section>
						<script type="text/javascript" src="../../../static/common/web/js/page.js"></script>
						<script type="text/javascript">
							var totalPageSize = 0;
							var currentPage =
								0 < 1 ? 1 : 1;
							var totalPage = 0;
							showPageNumber();
						</script>
						<form action="../../../../uc/myrepquestions/list" id="searchForm" method="post"> <input type="hidden" id="pageCurrentPage" name="page.currentPage" value="1" /> </form>
					</div>
				</section>
			</div>
		</article>
		<script>
			var app = new Vue({
				el: "#app",
				data: {
					question: [],
					flag: true,
					eduUser: ""
				},
				created: function() {
					var token = localStorage["token"];
					this.eduUser = islogins(token).data;
					var that = this;
					axios.defaults.headers.common["token"] = localStorage["token"];
					axios.get("http://localhost:9095/user/personal/question", {
						params: {
							"cusId": this.eduUser.userId
						}
					}).then(function(response) {
						that.question = response.data.data;
						console.log(that.question)
					})
				},
				methods:{
					toDetail:function(id){
							localStorage.setItem("id",id);
//							location.href = "../../../questions/question-detail.html"
							parent.location.href = "../../../questions/question-detail.html"
						}
				}
			})
		</script>
	</body>

</html>